<?php
require('includes/top.php');
$title ='Log Off';
$content = 'logoff';
if (isset($_SESSION['experts_id'])) 
	{

		unset($_SESSION['experts_id']);
		unset($_SESSION['experts_fname']);
		unset($_SESSION['experts_lname']);
		unset($_SESSION['experts_address']);
		unset($_SESSION['experts_phone']);
		unset($_SESSION['experts_mob']);
		unset($_SESSION['experts_username']);
		unset($_SESSION['password']);
		session_destroy();
		//require('templates/main.tpl.php');
		header('Location: login.php');
	}

	elseif (isset($_SESSION['vendors_id']))
		{

		unset($_SESSION['vendors_id']);
		unset($_SESSION['vendors_fname']);
		unset($_SESSION['vendors_lname']);
		unset($_SESSION['vendors_address']);
		unset($_SESSION['vendors_phone']);
		unset($_SESSION['vendors_mob']);
		unset($_SESSION['vendors_username']);
		unset($_SESSION['password']);
		session_destroy();
		//require('templates/main.tpl.php');
		header('Location: login.php');
	}


	else
		{

		unset($_SESSION['user_id']);
		unset($_SESSION['fname']);
		unset($_SESSION['lname']);
		unset($_SESSION['address']);
		unset($_SESSION['phone']);
		unset($_SESSION['mob']);
		unset($_SESSION['username']);
		unset($_SESSION['password']);
		session_destroy();
		//require('templates/main.tpl.php');
		header('Location: login.php');
	}
?>





